package com.example.hiltuse;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;

import com.example.hiltuse.interfacedi.TestInterface;

import javax.inject.Inject;
import dagger.hilt.InstallIn;
import dagger.hilt.android.AndroidEntryPoint;
@AndroidEntryPoint
public class MainActivity extends AppCompatActivity {

    @Inject
    HttpObject httpObject;
    @Inject
    TestInterface testInterface;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        Log.e("拿到数据了",httpObject.hashCode() + "");
       testInterface.method();
    }
}